// 营销中心
import { isFlashCouponGroupId } from "@/utils/globalTypes.ts";

export default [
    {
        path: '/couponView',
        name: 'coupon',
        redirect: '/couponList',
        meta: {
            highlight: true,
            name: '闪购优惠券管理',
            group_id: isFlashCouponGroupId,
        },
        children: [
            {
                path: '/couponList',
                name: 'CouponList',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/index.vue'),
            },
            {
                path: '/couponEdit/:origin/:group_id',
                name: 'CouponEdit',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/Edit/index.vue'),
                meta: {
                    showBack: true,
                    name: '编辑优惠券',
                },
            },
            {
                path: '/couponDetail/:origin/:id/:group_id',
                name: 'CouponDetail',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/Detail/index.vue'),
                meta: {
                    showBack: true,
                    name: '优惠券详情',
                },
            },
            {
                path: '/couponReport/:origin/:id',
                name: 'CouponReport',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/Report/index.vue'),
                meta: {
                    showBack: true,
                    name: '数据报表',
                },
            }
        ]
    }
]